package cn.edu.scau.cmi.luochenghao.chapter10;
import java.io.*;
public class Example10_9 {

	public static void main(String[] args) {
		
        RandomAccessFile in = null;
        try {
            in = new RandomAccessFile("/Users/luochenghao/git/201725110111_luo_chenghao/201725110111罗铖昊/src/cn/edu/scau/cmi/luochenghao/chapter10/Example10_9.java", "rw");
            long length = in.length();
            long position = 0;
            in.seek(position);
            while (position < length) {
                String string = in.readLine();
                byte[] b = string.getBytes("iso-8859-1");
                string = new String(b);
                position = in.getFilePointer();
                System.out.println(string);
            }
        } 
        catch (IOException e) {}
    }

}
